import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    theme: ThemeData( // 这里就是参数
      brightness: Brightness.dark,
      primaryColor: Colors.amber,
      canvasColor:  const Color.fromRGBO(100, 52, 190, 1),
      cardColor:  Colors.amber,
    ),
    home: Scaffold(
      appBar: AppBar(
        title: const Text("第一个flutter界面"),
      ),
      body: const HomeWidget()
    ),
  ));
}


class HomeWidget extends StatelessWidget {
  const HomeWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Text(
          "你好flutter"
      ),
    );
  }
}
